<?php
/** @var ActividadController $this */
/** @var Actividad $model */
Yii::app()->getClientScript()->registerCssFile(Yii::app()->theme->baseUrl . '/css/timeline-component.css');
?>
<script>
    $(function() {
//                                         Infinite Ajax Scroll v2.1.2
        var ias = $('div.widget-tareas').ias({
            container: "#lista-infinita",
            item: "div.itemSelector",
            pagination: "div.pagination",
            next: "#lista-infinita div.pagination ul.yiiPager li.next:not(.disabled):not(.hidden) a",
        });
        ias.extension(new IASSpinnerExtension());
        ias.extension(new IASNoneLeftExtension({text: 'No hay mas datos.'}));
    })

</script>
<div class="widget">
    <div class="widget-title">
        <h4><i class="icon-time"></i> <?php echo Yii::t('app', 'Historial de') ?> <?php echo Actividad::label(2) ?></h4>
        <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
        </span>
    </div>
    <div class="widget-body"  >
        <div class="widget-tareas">
            <?php
            $this->widget('ext.bootstrap.widgets.TbListView', array(//TODO: crear widget para scrollinfinito   Infinite Ajax Scroll v2.1.2
                'id' => 'lista-infinita',
                'dataProvider' => $providerInfinite,
//                            'viewData' => array('model' => $model, 'modal' => false),
                'itemView' => 'portlets/_actividades',
                'template' => '{items}{pager}',
            ));
            ?>
        </div>
    </div>
</div>